package com.yuyou.train.lesson.service;

import java.util.List;

import com.yuyou.train.service.api.lesson.dto.RuleDetailDTO;
import com.yuyou.train.service.api.lesson.entity.LessonResourceRuleRelation;
import com.yuyou.train.service.api.lesson.entity.Rule;
import com.yuyou.train.util.bean.Pagination;
import com.yuyou.train.util.bean.ResBoolSimpleInfo;


public interface IRuleService {
    int deleteByPrimaryKey(String id);

    ResBoolSimpleInfo<String> delRule(String id);
    
    int insert(Rule record);
    
    ResBoolSimpleInfo<String> addOrUpdateRule(Rule record);
    
    Rule selectByPrimaryKey(String id);

    RuleDetailDTO selectDetailByPrimaryKey(String id);
    
    int updateByPrimaryKeySelective(Rule record);
    
    List<RuleDetailDTO> findRulePageList(Pagination<RuleDetailDTO> p);
    
    int findRulePageCount(Pagination<RuleDetailDTO> p);

//    ResBoolSimpleInfo<String> isLessonUse(String ruleId,List<LessonResourceRuleRelation> listRel);

	ResBoolSimpleInfo<String> hasLessonRel(String id);
}
